<template>
    <div class="home">
        <TypeNav />
        <ListContainer />
        <Recommend />
        <Rank />
        <Like />
        <Floor v-for="f in floor" :key="f.id" :floor="f" />
        <Brand />
        
    </div>
</template>

<script>
import ListContainer from "./ListContainer";
import Recommend from "./Recommend";
import Brand from "./Brand";
import Floor from "./Floor";
import Like from "./Like";
import Rank from "./Rank";
import {mapState} from "vuex"
export default {
  name: "Home",
  components: {
    ListContainer,
    Recommend,
    Brand,
    Floor,
    Like,
    Rank,
  },
  computed:{
    ...mapState("home",["floor"])
  },
  mounted(){
    this.$store.dispatch("home/GetFloorList")
  }
};
</script>

<style lang="less" scoped>
</style>